const express = require("express");
const { ExpressPeerServer } = require("peer");

const app = express();

app.use(express.static('./public'))

app.get("/", (req, res, next) => res.send("Hello world!"));

// =======

const server = app.listen(9000);

// http://127.0.0.1:9000/rtc
app.use("/rtc",  ExpressPeerServer(server));